const fs = require('fs');
const fsPromises = require('fs').promises;

describe('文件测试', () => {
    it('test1', () => {
        let str = fs.readFileSync("test/1.js",{encoding:"utf-8"});
        console.log(str);
    });

    it('test2', () => {
        fsPromises.readFile("test/1.js",{encoding:"utf-8"}).then(res=>{
            console.log(res);
        })
    });
});